<template>
	<el-container>
		<LeftNav />
		<el-container id="container">
			<Header />
			<Main />
			<!-- <Footer /> -->
		</el-container>
		<Drawer />
	</el-container>
</template>

<script>
	import Header from '@/components/models/Header'
	import LeftNav from '@/components/models/LeftNav'
	import Main from '@/components/models/Main'
	import Drawer from '@/components/models/Drawer'
	// import Footer from '@/components/models/Footer'

	export default {
		components: {
			Header,
			LeftNav,
			Main,
			Drawer
			// Footer
		},

		data() {
			return {
			};
		},

		watch: {

		},

		mounted() {
			var host = window.location.host;
			if( host.indexOf('fabwang')!=-1 ) {
				this.$alert('发b网的各位分站使用我们二级域名的代理，老域名即将无法访问，例如a.fabwang.com可以在后台换成a.youmaidan.com。此域名不能使用时，这边也会自动帮你们换上，先做好一定的通知工作。详情可以电话联系或者联系客服。', '域名暂停使用', {
					confirmButtonText: '确定',
					center: true,
					callback: action => {
						this.$message({
						type: 'info',
						message: `action: ${ action }`
						});
					}
				});
			}
		},

		methods: {

		}

	}
</script>

<style>
	#container {
		display: flex;
		flex-direction: column;
	}
</style>

<style scoped>

</style>
